package jihe;

import java.util.Comparator;
import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeSet<Student> c = new TreeSet<>();
        c.add(new Student("张三", 18, "男"));
        c.add(new Student("刘爱华", 21, "女"));
        c.add(new Student("刘磊", 33, "男"));
        c.add(new Student("李凤霞", 24, "女"));
        c.add(new Student("张三", 18, "男"));







        c.forEach(System.out::println);


    }
}
